/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cassandrawindow;
import me.prettyprint.cassandra.service.CassandraHostConfigurator;
import me.prettyprint.hector.api.Cluster;
import me.prettyprint.hector.api.factory.HFactory;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Date;
import java.util.concurrent.*;

/**
 *
 * @author ADMIN
 */
public class CounterClick {
    RedisClient rClient;
    
    //init connection socket to RedisServer
    CounterClick(String host ,int port){
        rClient = new RedisClient(host, port);                
    }

    public String GetKeyClickCassandra(String campaignId,String bannerId ,String domainId,String hour)
    {
        String valRet = "";
        String key = campaignId +"-"+ bannerId +"-"+ domainId +"-"+hour;
        valRet = rClient.get(key);
        return valRet;
    }
    
}
